package org.alex.samples.dao;

import java.util.List;

import org.alex.samples.model.ExamSubject;

public interface IExamSubjectDAO  extends IBaseDAO<ExamSubject>{
	
    public List<ExamSubject> findAllExamSubject();
	
    public ExamSubject getExamSubjectById(Integer subId);
	
	public Integer createExamSubject(ExamSubject examSubject) throws Exception;
	
	public Integer editExamSubject(ExamSubject examSubject) throws Exception;
	
	public Integer deleteExamSubject(Integer subId) throws Exception;

	public List<String> getAllUserBySubject(Integer subjectId);
	
	public void insertSubjectUsers(List<String> insertList,Integer subjectId);
	
	public void deleteSubjectUsers(List<String> delList,Integer subjectId);

	public void addExamSubject(ExamSubject examSubject);

	public void editExamTest(ExamSubject examSubject);

	public void deleteSubject(Integer subId);

	public List<String> getAllSubjectByUser(String userId);

	public void deleteUserSubjects(List<String> delList, String userId);

	public void insertUserSubjects(List<String> insertList, String userId);

	public ExamSubject getSubjectByName(String subjectName);

	
}
